package com.o2opuzi.ms.model.user;

import java.util.Date;

import com.o2opuzi.lib.db.Model;
import com.o2opuzi.lib.db.Tb;

/**
 * 用户
 * @author Y.hj
 * @date 2016年5月31日
 */
@Tb(name="user")
public class User extends Model<User, Integer>{

	private static final long serialVersionUID = -4733261839734480492L;
	
	/**
	 * 主键id
	 */
	private Integer id;
	
	/**
	 * 登录账号
	 */
	private String account;
	
	/**
	 * 登录密码
	 */
	private String password;
	
	/**
	 * 昵称
	 */
	private String nickname;
	
	/**
	 * 头像
	 */
	private String headimgurl;
	
	/**
	 * 手机号码
	 */
	private String phone;
	
	/**
	 * 邮箱
	 */
	private String email;
	
	/**
	 * 性别
	 */
	private String gender;
	
	/**
	 * 出生日期
	 */
	private Date birthday;
	
	/**
	 * 是否是管理员
	 */
	private Integer isadmin;
	
	/**
	 * 角色id
	 */
	private Integer role_id;
	
	/**
	 * 创建时间
	 */
	private Date createdate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getIsadmin() {
		return isadmin;
	}

	public void setIsadmin(Integer isadmin) {
		this.isadmin = isadmin;
	}

	public Integer getRole_id() {
		return role_id;
	}

	public void setRole_id(Integer role_id) {
		this.role_id = role_id;
	}
	
	
	

}
